﻿package mortal.game.net.command.task
{
    import Framework.MQ.*;
    import Message.Game.*;
    import com.gengine.debug.*;
    import flash.utils.*;
    import mortal.game.cache.*;
    import mortal.game.mvc.*;
    import mortal.game.net.broadCast.*;
    import mortal.game.view.task.*;
    import mortal.mvc.core.*;

    public class TaskCanGetRecvCommand extends BroadCastCall
    {

        public function TaskCanGetRecvCommand(param1:Object)
        {
            super(param1);
            return;
        }// end function

        override public function call(param1:MessageBlock) : void
        {
            var _loc_2:* = getTimer();
            Log.error("TaskCanGetRecvCommand...请求服务器完成任务，到服务器返回可接任务列表时间=" + (_loc_2 - TaskCache.endTaskTime));
            var _loc_3:* = param1.messageBase as SSeqTask;
            Cache.instance.task.initTaskCanGet(_loc_3.tasks);
            NetDispatcher.dispatchCmd(ServerCommand.TaskCanGetRecv, _loc_3.tasks);
            return;
        }// end function

    }
}
